package com.ruoyi.base.mapper;

import java.util.List;
import com.ruoyi.base.domain.BaseRoom;

/**
 * 房间Mapper接口
 * 
 * @author yepanpan
 * @date 2020-11-09
 */
public interface BaseRoomMapper 
{
    /**
     * 查询房间
     * 
     * @param id 房间ID
     * @return 房间
     */
    public BaseRoom selectBaseRoomById(Long id);
    
    /**
     * 查询房间
     * 
     * @param baseRoom 房间信息
     * @return 房间
     */
    public BaseRoom findBaseRoom(BaseRoom baseRoom);

    /**
     * 查询房间列表
     * 
     * @param baseRoom 房间
     * @return 房间集合
     */
    public List<BaseRoom> selectBaseRoomList(BaseRoom baseRoom);

    /**
     * 查询房间下拉列表
     * 
     * @param baseRoom 房间
     * @return 房间集合
     */
    public List<BaseRoom> selectList(BaseRoom baseRoom);
    
    /**
     * 查询可用固定教室列表
     * 
     * @param baseRoom 房间
     * @return 房间集合
     */
    public List<BaseRoom> selectClassRoom(BaseRoom baseRoom);
    
    /**
     * 新增房间
     * 
     * @param baseRoom 房间
     * @return 结果
     */
    public int insertBaseRoom(BaseRoom baseRoom);

    /**
     * 修改房间
     * 
     * @param baseRoom 房间
     * @return 结果
     */
    public int updateBaseRoom(BaseRoom baseRoom);

    /**
     * 删除房间
     * 
     * @param id 房间ID
     * @return 结果
     */
    public int deleteBaseRoomById(Long id);

    /**
     * 批量删除房间
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteBaseRoomByIds(Long[] ids);
}
